<?php
class ModelSdtclassIsme extends Model {

	public function getAddress($address_id) {
		$query =	$this->db->query("select * from " . DB_PREFIX . "address WHERE address_id = '" . (int)$address_id . "' AND customer_id = '".(int)$this->customer->getId()."'");
		
		return $query->row['customer_id'];
	}
	
	public function getOrder($order_id) {
		$query =	$this->db->query("select * from " . DB_PREFIX . "order WHERE order_id = '" . (int)$order_id . "' AND customer_id = '".(int)$this->customer->getId()."'");
		
		return $query->row['customer_id'];
	}
}
